package com.tim.app.server.result;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by wdy on 2017/8/23.
 */

public class PrepareExchangeBean {

    /**
     * code : 10000
     * message : success
     * total : 0
     * res : {"configureflowermoney":{"id":1,"flower":1000,"moliFlowerCount":0,"moneyCount":0,"money":1,"deleted":0,"createTime":1503311485000,"updateTime":1503311485000}}
     */

    private String code;
    private String message;
    private int total;
    private ResBean res;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public ResBean getRes() {
        return res;
    }

    public void setRes(ResBean res) {
        this.res = res;
    }

    public static class ResBean {
        /**
         * configureflowermoney : {"id":1,"flower":1000,"moliFlowerCount":0,"moneyCount":0,"money":1,"deleted":0,"createTime":1503311485000,"updateTime":1503311485000}
         */

        private ConfigureflowermoneyBean configureflowermoney;

        public ConfigureflowermoneyBean getConfigureflowermoney() {
            return configureflowermoney;
        }

        public void setConfigureflowermoney(ConfigureflowermoneyBean configureflowermoney) {
            this.configureflowermoney = configureflowermoney;
        }

        public static class ConfigureflowermoneyBean implements Parcelable {

            /**
             * id : 1
             * flower : 1000
             * moliFlowerCount : 0.0
             * moneyCount : 0.0
             * money : 1
             * deleted : 0
             * createTime : 1503311485000
             * updateTime : 1503311485000
             */
            private int id;
            private int flower;
            private int moliFlowerCount;
            private double moneyCount;
            private int money;
            private int deleted;
            private long createTime;
            private long updateTime;
            private int minMoney;

            public int getMinMoney() {
                return minMoney;
            }

            public void setMinMoney(int minMoney) {
                this.minMoney = minMoney;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getFlower() {
                return flower;
            }

            public void setFlower(int flower) {
                this.flower = flower;
            }

            public int getMoliFlowerCount() {
                return moliFlowerCount;
            }

            public void setMoliFlowerCount(int moliFlowerCount) {
                this.moliFlowerCount = moliFlowerCount;
            }

            public double getMoneyCount() {
                return moneyCount;
            }

            public void setMoneyCount(double moneyCount) {
                this.moneyCount = moneyCount;
            }

            public int getMoney() {
                return money;
            }

            public void setMoney(int money) {
                this.money = money;
            }

            public int getDeleted() {
                return deleted;
            }

            public void setDeleted(int deleted) {
                this.deleted = deleted;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public long getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(long updateTime) {
                this.updateTime = updateTime;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(this.id);
                dest.writeInt(this.flower);
                dest.writeInt(this.moliFlowerCount);
                dest.writeDouble(this.moneyCount);
                dest.writeInt(this.money);
                dest.writeInt(this.deleted);
                dest.writeLong(this.createTime);
                dest.writeLong(this.updateTime);
                dest.writeInt(this.minMoney);
            }

            public ConfigureflowermoneyBean() {
            }

            protected ConfigureflowermoneyBean(Parcel in) {
                this.id = in.readInt();
                this.flower = in.readInt();
                this.moliFlowerCount = in.readInt();
                this.moneyCount = in.readDouble();
                this.money = in.readInt();
                this.deleted = in.readInt();
                this.createTime = in.readLong();
                this.updateTime = in.readLong();
                this.minMoney = in.readInt();
            }

            public static final Parcelable.Creator<ConfigureflowermoneyBean> CREATOR = new Parcelable.Creator<ConfigureflowermoneyBean>() {
                @Override
                public ConfigureflowermoneyBean createFromParcel(Parcel source) {
                    return new ConfigureflowermoneyBean(source);
                }

                @Override
                public ConfigureflowermoneyBean[] newArray(int size) {
                    return new ConfigureflowermoneyBean[size];
                }
            };
        }
    }
}
